﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>商户添加效果图</title>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var i = 1;
            $('#imgshow').click(function () {
                var img = document.getElementById("imgshow");
                if (i == 0) {
                    img.src = "/Images/smalldemo.jpg";
                    i++;
                }
                else if (i == 1) {
                    img.src = "/Images/smallbigdemo.jpg";
                    i++;
                }
                else if (i == 2) {
                    img.src = "/Images/bigdemo.jpg";
                    i = 0;
                }

            });
        });
        function bigimg() {
            var img = document.getElementById("imgshow");
            img.onclick = function () {
                if (img.src == "/Images/smalldemo.jpg") {
                    img.src = "/Images/smallbigdemo.jpg";
                }
                else if (img.src == "/Images/smallbigdemo.jpg") {
                    img.src = "/Images/bigdemo.jpg";
                }
                else {
                    img.src = "/Images/smalldemo.jpg";
                }
            }
        }              
    </script>
</head>
<body>
    <img id="imgshow" src="/Images/smalldemo.jpg" alt="商户添加效果图" title="商户添加效果图" style="cursor: pointer" />
</body>
</html>
